package cn.myfirefly.moming.common.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "mm_department_staff")
public class MMDepartmentStaff implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1354795017359320812L;
	private Integer departmentStaffSn;
	private Integer departmentSn;
	private Integer staffSn;

	public MMDepartmentStaff() {
	}

	public MMDepartmentStaff(Integer departmentSn, Integer staffSn) {
		this.departmentSn = departmentSn;
		this.staffSn = staffSn;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "department_staff_sn", unique = true, nullable = false)
	public Integer getDepartmentStaffSn() {
		return this.departmentStaffSn;
	}

	public void setDepartmentStaffSn(Integer departmentStaffSn) {
		this.departmentStaffSn = departmentStaffSn;
	}

	@Column(name = "department_sn")
	public Integer getDepartmentSn() {
		return this.departmentSn;
	}

	public void setDepartmentSn(Integer departmentSn) {
		this.departmentSn = departmentSn;
	}

	@Column(name = "staff_sn")
	public Integer getStaffSn() {
		return this.staffSn;
	}

	public void setStaffSn(Integer staffSn) {
		this.staffSn = staffSn;
	}

}
